package jzqb.po;

import cnki.tpi.kbatis.annotation.Column;
import jzqb.vo.Field;
import lombok.Data;

/**
 * 自用库实体类
 */
@Data
public class ZYPo {

    @Column("题名")
    private String title;

    @Column("作者")
    private String author;

    @Column("SYS_FLD_DIGITFILENAME")//数字文件名
    private String digitFileName;

    @Column("关键词")
    private String keyWord;

    @Column("摘要")
    private String summary;

    @Column("文献来源")
    private String literatureSources;

    @Column("发表时间")
    private String publishDate;

    @Column("语言")
    private String language;

    @Column("领域")
    private String field;

    @Column("领域")
    private String area;

    @Column("全文")
    private String text;

    @Column("录入人")
    private String recorder;

    @Column("机构")
    private String organ;

    @Column("分类")
    private String classification;

    @Column("封面")
    private String cover;

    @Column("年")
    private String year;

    @Column("期")
    private String issue;

    @Column("TABLENAME")
    private String tableName;

    @Column("来源数据库")
    private String dbSource;

    @Column("主题")
    private String theme;

    @Column("SYS_FLD_SYSID")//唯一标识符
    private Integer sysID;

    @Column("SYS_FLD_DOWNLOADRATE")//下载次数
    private Integer downloadRate;

    @Column("SYS_FLD_BROWSERATE")//浏览次数
    private Integer browseRate;

    @Column("SYS_FLD_RECORDADDDATE")//新建记录时间
    private String recordAddDate;

    @Column("SYS_FLD_RECORDUPDATEDATE")//更新记录时间
    private String recordUpdateDate;

    @Column("SYS_FLD_FILEUPDATEDATE")//文件上传时间
    private String fileUpdateDate;

    @Column("SYS_VSM")//相似向量
    private String vsm;

    @Column("SYS_VSM_EN")//英文相似向量
    private String vsmen;

    private String recorderName;//录入人姓名

    private String newDigitFileName;//新上传文件

    private String newCover;//新上传封面

    private String needDelete;//需要删除文件名

    @Column("作者")
    private String authorRelate;

    @Column("机构")
    private String organRelate;

    @Column("关键词")
    private String keyWordRelate;

    //转换后台显示领域中文格式
    public String getField() {
        if (Field.ONE.getDbCode().equals(this.field)) {
            return Field.ONE.getShowName();
        } else if (Field.TWO.getDbCode().equals(this.field)) {
            return Field.TWO.getShowName();
        } else if (Field.THREE.getDbCode().equals(this.field)) {
            return Field.THREE.getShowName();
        } else if (Field.FOUR.getDbCode().equals(this.field)) {
            return Field.FOUR.getShowName();
        } else if (Field.FIVE.getDbCode().equals(this.field)) {
            return Field.FIVE.getShowName();
        } else if (Field.SIX.getDbCode().equals(this.field)) {
            return Field.SIX.getShowName();
        } else if (Field.SEVEN.getDbCode().equals(this.field)) {
            return Field.SEVEN.getShowName();
        } else if (Field.EIGHT.getDbCode().equals(this.field)) {
            return Field.EIGHT.getShowName();
        } else {
            return Field.NINE.getDbCode();
        }
    }
}

